import React,{Component} from "react";

function SetColor(WrappedComponent) {
  //WrappedComponent组件
   class NewCom extends Component {
      render() {
        return (
          <div style={{color:"red"}}>
            <WrappedComponent {...this.props}></WrappedComponent>
          </div>
        )
      }
    }
    return  NewCom;
    
}

export default SetColor;
